package bservice

import (
    "github.com/micro/go-micro/v2"
    "github.com/micro/go-micro/v2/registry"
    "github.com/micro/go-plugins/registry/consul/v2"
    "gonaio_base/constant"
)

func (Service) GetRegistry() (option micro.Option) {
    reg := consul.NewRegistry(registry.Addrs(bconstant.CONSUL_ADDRESS))
    option = micro.Registry(reg)
    return
}
